package cn.fbs.controller;

import cn.fbs.model.*;
import cn.fbs.model.dm.TSource;
import cn.fbs.service.DictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Administrator
 */
@Api(tags = "字典表查询")
@RestController
@RequestMapping("/dictionary")
public class DictionaryController {
    @Autowired
    private DictionaryService dictionaryService;

    @ApiOperation("查询视频类型")
    @GetMapping("/videoType")
    public List<TVideoType> getVideoTypes(){

        return dictionaryService.getVideoTypes();
    }
    @ApiOperation("查询传感器类型")
    @GetMapping("/sensorType")
    public List<TSensorType> getSensorTypes(){
        return dictionaryService.getSensorTypes();
    }
    @ApiOperation("查询拍摄平台")
    @GetMapping("/shotPlatform")
    public List<TShotPlatform> getShotPlatform(){
        return dictionaryService.getShotPlatform();
    }
    @ApiOperation("查询图像来源类型")
    @GetMapping("/imageSource")
    public List<TImageSource> getImageSources(){
        return dictionaryService.getImageSources();
    }

    @ApiOperation("查询视频密级")
    @GetMapping("/secretType")
    public List<TClassificationInfo> getSecretType(){
        return dictionaryService.getSecretType();
    }
    @ApiOperation("查询重要程度")
    @GetMapping("/importanceType")
    public List<TImportanceInfo> getImportanceType(){
        return dictionaryService.getImportanceType();
    }

    @ApiOperation("查询文件类别")
    @GetMapping("/fileType")
    public List<TCodeCategoryType> getFileType(){
        return dictionaryService.getFileType();
    }

    @ApiOperation("查询来源-战区")
    @GetMapping("/source")
    public List<TSource> getSource(){
        return dictionaryService.getSource();
    }

}
